<?php

namespace api\modules\v1\controllers;

use api\controllers\AController;
use common\components\Aes;

class GoodsController extends AController
{
    public $modelClass = 'common\models\Goods';

    /**
     * 测试查询方法
     *
     * @return string
     */
    public function actionSearch()
    {
        $aes = new Aes();
        $encrypt = $aes->encrypt(1234);
        $decrypt = $aes->decrypt($encrypt);
        echo $encrypt;
        echo "<br>";
        echo $decrypt;exit;
        return $decrypt;
    }
}